package cn.tedu._07springaop.aop;

public class CalculatorImpl implements Calculator{

    @Override
    public int mul(int x, int y) {
        System.out.println("mul方法开始，参数为，，，");
        int result = x*y;
        System.out.println("mul方法结束，结果为。。。");
        return result;
    }

    @Override
    public int div(int x, int y) {
       System.out.println("div方法开始，参数为，，，");
        int result = x/y;
        System.out.println("div方法结束，结果为。。。");
        return result;
    }


    @Override
    public int add(int x, int y) {
        System.out.println("add方法开始，参数为，，，");
        int result = x+y;
        System.out.println("add方法结束，结果为。。。");
        return result;
    }

    @Override
    public int sub(int x, int y) {
        System.out.println("sub方法开始，参数为，，，");
        int result = x-y;
        System.out.println("sub方法结束，结果为。。。");
        return result;
    }
}
